package com.example.springboot.service.impl;

import com.example.springboot.dao.PermissionDao;
import com.example.springboot.entity.Permission;
import com.example.springboot.service.PermissionService;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * Created by tang on 2018/1/5.
 */
public class PermissionServiceImpl implements PermissionService {

    private PermissionDao permissionDao = new PermissionDao();

    @Override
    public Permission createPermission(Permission permission) {
        permission = permissionDao.createPermssion(permission);
        return permission;
    }

    @Override
    public void deletePermission(Long permissionId) {
        permissionDao.deletePermission(permissionId);
    }
}
